import request from '@/utils/request'

// 查询加工预排产计划列表
export function listRocessingPreSchedulingPlan(query) {
  return request({
    url: '/sales/rocessingPreSchedulingPlan/list',
    method: 'get',
    params: query
  })
}

// 查询加工预排产计划详细
export function getRocessingPreSchedulingPlan(id) {
  return request({
    url: '/sales/rocessingPreSchedulingPlan/' + id,
    method: 'get'
  })
}

// 新增加工预排产计划
export function addRocessingPreSchedulingPlan(data) {
  return request({
    url: '/sales/rocessingPreSchedulingPlan',
    method: 'post',
    data: data
  })
}

// 修改加工预排产计划
export function updateRocessingPreSchedulingPlan(data) {
  return request({
    url: '/sales/rocessingPreSchedulingPlan',
    method: 'put',
    data: data
  })
}

// 删除加工预排产计划
export function delRocessingPreSchedulingPlan(id) {
  return request({
    url: '/sales/rocessingPreSchedulingPlan/' + id,
    method: 'delete'
  })
}
export function formalProduction(id) {
  return request({
    url: '/sales/rocessingPreSchedulingPlan/formalProduction/' + id,
    method: 'get'
  })
}
